import Vue from "vue";
// import App from "./app10";
import App from "./LBXSideMenu3.vue";

import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import Fragment from "vue-fragment";

import VueSidebarMenu from "vue-sidebar-menu";
import "vue-sidebar-menu/dist/vue-sidebar-menu.css";
Vue.use(VueSidebarMenu);

import { library } from "@fortawesome/fontawesome-svg-core";
import { faUserSecret } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";

import zMenu from "./components/zMenu";

Vue.component(zMenu);

library.add(faUserSecret);
Vue.component("font-awesome-icon", FontAwesomeIcon);

Vue.config.productionTip = false;

Vue.use(ElementUI, { size: "small", zIndex: 3000 });
Vue.use(Fragment.Plugin);

// router.beforeEach((to, from, next) => {
//   // if (to.path) { // 判断该路由是否需要登录权限
//   //
//   //   console.log(to.path);
//   // }else {
//   // }
//   console.log(to.path);
//   next();
// });

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
